<!DOCTYPE html>
<meta charset="UTF-8">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>upload</title>
</head>
<body>
<div>
    <form th:action="@{/upload}" method="POST" enctype="multipart/form-data">
        <input type="file" name="file">
        <button type="submit" name="button"
                style="background-color: cornflowerblue;width: 50px;height: 30px;border: solid;">上传
        </button>
    </form>
</div>

</body>
</html>